def printPicnic(itmesDict,leftWidth,rightWidth):
	print('PICNIC ITEMS'.center(leftWidth + rightWidth, '-'))
	for k,v in itmesDict.items():
		print(k.ljust(leftWidth,'.') + str(v).rjust(rightWidth))

picnicItems = {'sandwiches': 4,'apples': 12,'cups': 4,'cookies': 8000}
printPicnic(picnicItems, 12, 5)
printPicnic(picnicItems, 20, 6)